package com.lanqiao.javaparkinglot.service.impl;

import com.lanqiao.javaparkinglot.dao.HwhsDao;
import com.lanqiao.javaparkinglot.entity.Hwhs;
import com.lanqiao.javaparkinglot.service.HwhsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class HwhsServiceImpl implements HwhsService {
    @Autowired
    HwhsDao hwhsDao;

    //查询
    @Override
    public List<Hwhs> findhwhs(){
        List<Hwhs> hwhsList=hwhsDao.findhwhs();
        return hwhsList;
    }
    //添加
    @Override
    public void addhwhs(Hwhs hwhs) {hwhsDao.addhwhs(hwhs);}
    //修改
    @Override
    public void updatehwhs(Hwhs hwhs) {hwhsDao.updatehwhs(hwhs);}
    //删除
    @Override
    public void deletehwhs(Long hsh_id) {
        hwhsDao.deletehwhs(hsh_id);
    }
}
